Skip to content

feat(solana-wallet-snap)!: remove asset handler entry points - #261

Open
ulissesferreira wants to merge 3 commits into
mainfrom
WPN-2013-remove-asset-handlers
Open

feat(solana-wallet-snap)!: remove asset handler entry points#261
ulissesferreira wants to merge 3 commits into
mainfrom
WPN-2013-remove-asset-handlers

Conversation

@ulissesferreira

Copy link
Copy Markdown
Contributor

Closes WPN-2013

Summary

  • Removes the onAssetsLookup, onAssetsConversion, onAssetHistoricalPrice, and onAssetsMarketData entry points from solana-wallet-snap
  • Removes the now-unused handler modules under src/core/handlers/onAsset*
  • Removes the now-unused endowment:assets permission from the manifest

The AssetsService and TokenPricesService are kept since they are used by send, subscriptions, and transaction services.

Breaking change

The asset handler entry points are no longer exported by the snap.

@ulissesferreira
ulissesferreira requested a review from a team as a code owner September 2, 2026 17:12
@ulissesferreira
ulissesferreira force-pushed the WPN-2013-remove-asset-handlers branch 2 times, most recently from 964cca4 to e1852c6 Compare September 3, 2026 16:39
Remove the onAssetsLookup, onAssetsConversion, onAssetHistoricalPrice,
and onAssetsMarketData entry points, along with their now-unused
handler modules and the endowment:assets permission.

Closes WPN-2013
Remove the code left orphaned by the asset handler removal:
- AssetsService.fetchAssetsMarketData and SnapAssetsAdapter.fetchAssetsMarketData
- TokenPricesService (getMultipleTokensMarketData, getMultipleTokenConversions, getHistoricalPrice) and its types/tests
- PriceApiClient.getHistoricalPrices and historical price types/mocks
- tokenPricesService wiring in SnapAssetsAdapter and snapContext
@ulissesferreira
ulissesferreira force-pushed the WPN-2013-remove-asset-handlers branch from e1852c6 to cc2c915 Compare September 3, 2026 17:34
@ulissesferreira
ulissesferreira force-pushed the WPN-2013-remove-asset-handlers branch from cc2c915 to 7aaeeef Compare September 3, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant